#include <iostream>
#include <iostream>
#include "factory_method.h"

void ClientCode(const Creator* creator) 
{
    // ...
    std::cout << "Client: I'm not aware of the creator's class, but it still works." << std::endl;
    creator->SomeOperation();
    //creator.
    // ...
}

int main() 
{
    Creator* createA = new ConcreteCreatorA();
    ClientCode(createA);

    Creator* createB = new ConcreteCreatorB();
    ClientCode(createB);

	return 0;
}